/**
 * 
 */
package com.wubo.sec.service;

import java.util.List;

import javax.annotation.security.RolesAllowed;

import com.wubo.sec.model.ErrorLog;

/**
 * @author wubo
 * @CreateDate 2010-8-8
 * @version 1.0.01
 */
public interface IErrorLogService {
	
	@RolesAllowed({"ADMIN", "ERRORLOG_READ"})
	List<String> listType(String type);

	void save(ErrorLog log);
	
	long getTotal(String filter, Object[] params);
	
	@RolesAllowed({"ADMIN", "ERRORLOG_READ"})
	List<ErrorLog> getSplitPage(int start, int limit, String filter, Object[] params);

	@RolesAllowed("ERRORLOG_CLEAR")
	void delAll();
	
	@RolesAllowed("ERRORLOG_CLEAR")
	void del(String ids);
}
